package cn.edu.gduf.luowowo.flight.domain;

import cn.edu.gduf.luowowo.article.domain.Destination;
import cn.edu.gduf.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class FlightDetail extends BaseDomain{
    public static final int TYPE_SINGLE = 1;
    public static final int TYPE_BACK = 0;

    private String airplinename; //航空公司名称
    private String flightnumber; //航班编号
    private Date startflytime; //飞机起飞时间
    private Date endflytime; //飞机降落时间
    private Destination startdest; //飞机起飞的地点
    private Destination endflydest; //飞机降落的地点
    private BigDecimal price; //价格
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deptime; //出发时间
    private Date endtime; //返回时间
    private int type = TYPE_SINGLE;

}
